package com.weiwu.weiwustore.controller;

import com.weiwu.weiwustore.pojo.RestResponse;
import com.weiwu.weiwustore.service.RecordService;
import com.weiwu.weiwustore.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 记录相关接口
 */
@RestController
public class RecordController {
    @Autowired
    private RecordService recordService;
    @PostMapping("/record/getmaterials")
    public RestResponse getmaterials(@RequestBody Map<String,String> map) {
        return new RestResponse(recordService.getmaterials(map));
    }
}
